#ifndef MOTORFORM_H
#define MOTORFORM_H

#include <QWidget>
#include <Common/common.h>
#include <motor/maincontroller.h>


namespace Ui {
class MotorForm;
}

class MotorForm : public QWidget
{
    Q_OBJECT

public:
    explicit MotorForm(QWidget *parent = nullptr);
    ~MotorForm();

    void RdConfig();
    void WdConfig(int index);
public slots:
    void soltInMain(int sig);
private slots:
    void on_Bt_motor_strart_clicked();

    void on_Bt_motor_stop_clicked();

    void on_Bt_motor_emo_clicked();

    void on_Bt_close_all_clicked();

    void on_Bt_1_1_clicked();

    void on_Bt_1_2_clicked();

    void on_Bt_1_3_clicked();


private:
    Ui::MotorForm *ui;


    MOTOR_CONTROL_INFO m_motorInfo;

    MainController controller;

    int m_rtn;
};

#endif // MOTORFORM_H
